package 抢票.Test01;

public class Test01 {
    public static void main(String[] args) {
        SellTicket st = new SellTicket("小明",1234);
        Thread t1 = new Thread(new TicketRunnable(st));
        Thread t2 = new Thread(new TicketRunnable(st));
        Thread t3 = new Thread(new TicketRunnable(st));
        Thread t4 = new Thread(new TicketRunnable(st));
        t1.setName("t1");
        t2.setName("t2");
        t3.setName("t3");
        t4.setName("t4");
        t1.start();
        t2.start();
        t3.start();
        t4.start();
    }
}
